package com.mathdroid.crawler.armor;

import java.util.LinkedList;

/**
 * Items of the type "Armor" require a proficiency to use them.
 */
public enum EArmorProficiency {

	LIGHT("Light Armor"),
	MEDIUM("Medium Armor"),
	HEAVY("Heavy Armor"),
	ACCESSOIRS("Accessoirs Armor"),
	MISCELLANEOUS("Miscellaneous Armor");

	/**
	 * String representation of the proficiency.
	 */
	private String name = null;
	
	/**
	 * Create an armor proficiency enumeration.
	 * @param s String representation.
	 */
	EArmorProficiency(final String s) {
		this.name = s;
	}
	
	@Override
	public String toString() {
		return this.name;
	}
	
	/**
	 * Get all available armor proficiencies as a list.
	 * @return All armor types.
	 */
	public static LinkedList<EArmorProficiency> getArmorProficiencies() {
		LinkedList<EArmorProficiency> r = new LinkedList<EArmorProficiency>();
		
		r.add(LIGHT);
		r.add(MEDIUM);
		r.add(HEAVY);
		r.add(ACCESSOIRS);
		r.add(MISCELLANEOUS);
		
		return r;
	}
}
